XXXXXXXXXXXXXXXXXXXXXXXXvoid(0)" frameborder="0"
name="MSearchResults" id="MSearchResults">
Map of state keys (char) to objects of type T (vectors, matrices, types, priors, ...)
More...
#include <core/composite/composite.h>
template<typename T>
class wolf::Composite< T >
Map of state keys (char) to objects of type T (vectors, matrices, types, priors, ...)
◆ CompositeType
Type of the stored values.
◆ Composite()
template<typename T >
| wolf::Composite< T >::Composite |
( |
const YAML::Node & |
_n, |
|
|
const std::string & |
_field, |
|
|
const bool |
_required, |
|
|
const std::string & |
_keys = ALL_KEYS |
|
) |
| |
|
inline |
Constructor from a YAML map of keys.
- Parameters
-
| _field | field of each key to read (the whole node of each key if empty) |
| _required | throw if a key (or its field) is missing |
| _keys | keys to read (all if ALL_KEYS) |
◆ ~Composite()
◆ getKeys()
◆ has() [1/2]
Returns whether the composite has a key.
◆ has() [2/2]
Returns whether the composite has all the keys.
◆ operator()()
Returns the composite of the given keys. Throws if any is missing.
◆ toYaml()
Returns a YAML map of the keys.
◆ operator<<
template<typename T >
| std::ostream & operator<< |
( |
std::ostream & |
_os, |
|
|
const Composite< T > & |
_x |
|
) |
| |
|
friend |
Prints the composite to a stream.
The documentation for this class was generated from the following file: